package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;

import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("appointment")
public class Appointment {
    @TableId(type = IdType.AUTO)
    private Integer id;

    private String patientName;

    private Integer doctorId;

    private LocalDateTime appointmentTime;

    private String status;  // 等待中 / 呼叫中 / 就诊中 / 完毕

    private LocalDateTime createdAt;
}
